<?php

class ActionIndex extends BaseAction
{
    public $pageId = 'news_list';

    public function run()
    {
        $oCriteria            = new CDbCriteria();
        $oCriteria->condition = 'news_active = 1';
        $oCriteria->order     = 'news_cdate DESC';
        
        $this->template->oNewsDataProvider = new CActiveDataProvider('News', array
        (
            'criteria'   => $oCriteria,
            'pagination' => array
            (
                'pageSize' => 15
            )
        ));
    }
}